package com.dd.shop4j.goods.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.dd.shop4j.goods.model.GoodsInfoAttrDetail;
import com.dd.shop4j.common.mapper.IBaseMapper;

/**
 * 商品属性明细关联(goods_info_attr_detail)Mapper 
 * 
 * @author 唐小恕 2013-08-27
 * @version 1.0 
 */
@Repository
public interface GoodsInfoAttrDetailMapper extends IBaseMapper<GoodsInfoAttrDetail, Integer> {

	/**
	 * 根据商品id和属性值id删除多余的属性值数据
	 * @param goodId	商品id
	 * @param goodAttrDetailIds	属性值id
	 * @return 影响行数
	 */
	public int deleteByGoodIdAndIds(@Param("goodId") Integer goodId, 
									@Param("goodAttrDetailIds") Integer[] goodAttrDetailIds);

}
